#include"SELECTFUNC.h"
#include<stdio.h>
#include<stdlib.h>
#include<mysql.h>
int main()
{
	CONNPAR connect;
	memset(&connect, 0, sizeof(connect));
	connect.host = (char*)malloc(20 * sizeof(char*) + 1);
	connect.host = "192.168.15.251";
	connect.port = 3306;
	connect.u_name = (char*)malloc(20 * sizeof(char*) + 1);
	connect.u_name = "root";
	connect.password = (char*)malloc(20 * sizeof(char*) + 1);
	connect.password = "2234";
	connect.dbname = (char*)malloc(20 * sizeof(char*) + 1);
	connect.dbname = "accesslist";
	connect.tablename = (char*)calloc(50, sizeof(char));
	//conntsql(connect.host, connect.u_name, connect.password, connect.port);
	makedict();
	//show_db(connect.host,connect.u_name,connect.password,connect.port);
	//connect.tablename = strc();
	//select_data(connect.host, connect.u_name, connect.password, connect.port, connect.dbname,connect.tablename);
	
	system("pause");
	return 0;
}